package cn.ryh.redisSingle;

import org.junit.Test;
import redis.clients.jedis.Jedis;

/**
 * @ClassName redisSingle
 * @Description 连接redis单机版
 * @Author RaoYH
 * @Date 2018/10/30 8:56
 */
public class redisSingle {
    @Test
    public void connectRedisSingle() throws Exception{
        Jedis jedis = new Jedis("192.168.10.117", 7001);
        String name = jedis.get("name");
        System.out.println(name);
        jedis.close();
    }
}
